<!--{include file='common/header.htm'}-->
<!--{include file='activity/activity_publish_header.htm'}-->
<!--{include file='common/header_nav.htm'}-->
<div>
  <form method="post" id="form_pub_activity" action="/activity/publish" enctype="multipart/form-data">
    <table>
      <tbody>
        <tr>
          <td>活动名称</td>
          <td><input type="text" name="name" value="{$activity->name}" maxlength="25" size="25" /></td>
          <td>{$error->name}</td>
        </tr>
        <tr>
          <td>活动分类</td>
          <td><select name="category">
              <option value="1">户外活动</option>
              <option value="2">KTV</option>
            </select></td>
          <td>{$error->category}</td>
        </tr>
        <tr>
          <td>活动地点</td>
          <td><select name="province">
              <option value="31" selected="selected">陕西省</option>
              <option value="1">北京市</option>
            </select> <select name="city">
              <option value="1" selected="selected">西安市</option>
              <option value="2">北京市</option>
            </select> <select name="district">
              <option value="1">碑林区</option>
              <option value="2">莲湖区</option>
              <option value="3">雁塔区</option>
              <option value="3">朝阳区</option>
              <option value="5">海淀区</option>
              <option value="4">东城区</option>
            </select> <br /> <input type="text" name="address" value="{$activity->addr}" maxlength="20" size="25" /></td>
          <td>{$error->address}</td>
        </tr>
        <tr>
          <td>活动时间</td>
          <td><input type="text" name="stime" id="stime" maxlength="16" size="16" /> <img src="/static/images/datetimepicker/cal.gif" onclick="javascript:NewCssCal('stime','yyyyMMdd','dropdown',true,24)" style="cursor: pointer" alt="选择开始时间和日期" /> <span>-</span> <input type="text" name="etime" id="etime" maxlength="16" size="16" /> <img src="/static/images/datetimepicker/cal.gif"
            onclick="javascript:NewCssCal('etime','yyyyMMdd','dropdown',true,24)" style="cursor: pointer" alt="选择结束时间和日期" /></td>
          <td>{$error->time}</td>
        </tr>
        <tr>
          <td>报名时间</td>
          <td><input type="text" name="sentime" id="s_enroll" maxlength="16" size="16" /> <img src="/static/images/datetimepicker/cal.gif" onclick="javascript:NewCssCal('s_enroll','yyyyMMdd','dropdown',true,24)" style="cursor: pointer" alt="选择结束时间和日期" /> <span>-</span> <input type="text" name="eentime" id="e_enroll" maxlength="16" size="16" /> <img
            src="/static/images/datetimepicker/cal.gif" onclick="javascript:NewCssCal('e_enroll','yyyyMMdd','dropdown',true,24)" style="cursor: pointer" alt="选择结束时间和日期" /></td>
          <td>{$error->enrolltime}</td>
        </tr>
        <tr>
          <td>组织者</td>
          <td><input type="text" name="master" /></td>
          <td>{$error->master}</td>
        </tr>
        <tr>
          <td>联系电话</td>
          <td><input type="text" name="contact_tel" /></td>
          <td>{$error->contact_tel}</td>
        </tr>
        <tr>
          <td>联系QQ</td>
          <td><input type="text" name="contact_qq" /></td>
          <td>{$error->contact_qq}</td>
        </tr>
        <tr>
          <td>人数限制</td>
          <td>男 <input type="text" name="maxmale" /> 女 <input type="text" name="maxfemale" />
          </td>
          <td>{$error->maxpeople}</td>
        </tr>
        <tr>
          <td>消费类型</td>
          <td><label>
              <input id="costtype_0" name="costtype" type="radio" value="0" onclick="on_consume_type_change(0);" />
              免费
            </label> <label>
              <input id="costtype_1" name="costtype" type="radio" value="1" onclick="on_consume_type_change(1);" />
              AA
            </label> <label>
              <input id="costtype_2" name="costtype" type="radio" value="2" onclick="on_consume_type_change(2);" />
              男AA女免费
            </label> <label>
              <input id="costtype_3" name="costtype" type="radio" value="3" onclick="on_consume_type_change(3);" />
              女AA男免费
            </label> <label>
              <input id="costtype_4" name="costtype" type="radio" value="4" onclick="on_consume_type_change(4);" />
              自定义
            </label></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>
            <div id="cost_placeholder"></div>
          </td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>宣传海报</td>
          <td><div id="pop_pic"></div><p id="divStatus">0 Files Uploaded</p></td>
          <td>{$error->img}</td>
        </tr>
        <tr>
          <td colspan="3"><script type="text/plain" id="textedit" name="intro"></script></td>
        </tr>
        <tr>
          <td colspan="3"><input type="button" id="bn_pub" value="发布活动" /></td>
        </tr>
      </tbody>
    </table>
  </form>
</div>
<!--{literal}-->
<script type="text/javascript">
	if (window.console && window.console.clear) {
		console.log("hahaha");
	}
</script>
<!--{/literal}-->
<!--{include file='common/footer.htm'}-->
